﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CCSummary.aspx.cs" Inherits="CCSummary"
    MasterPageFile="~/Default.master" EnableViewState="false" %>

<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dxcb" %>
            
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<asp:Content ContentPlaceHolderID="head" ID="hd" runat="server" EnableViewState="false">

    <script src="CCSummary.js" type="text/javascript"></script>
    <script src="js/LOV.js" type="text/javascript"></script> 
    <script src="js/Datetimepicker.js" type="text/javascript"></script>
    
    <%--

    <script src="js/FileUpload.js" type="text/javascript"></script>
    

    
    <!-- TinyMCE -->

    <script src="js/tiny_mce.js" type="text/javascript"></script>

    <!-- /TinyMCE -->--%>
    <link href="CCSummary.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ContentPlaceHolderID="leftMenu" ID="leftnav" runat="server" EnableViewState="false">
<% Response.Write(GenerateSideMenu()); %>
</asp:Content>
<asp:Content ContentPlaceHolderID="content" ID="ctnCC" runat="server"
    EnableViewState="false">
    <div id="pnlCCTitle"></div>
    <div id="pnlCC" runat="server"></div> 
    <fieldset class="m_fs_border" id="fs_CCView">
        <legend><a class="lnk" href="javascript:toggle('CCSum');">Call Summary</a>
        </legend>
        <dl class="m_fs">
            <div id="div_CCSum">
            <% Response.Write(CCManager.BuildEditor_CCSummary()); %>
            <dxwgv:ASPxGridView ID="dgCCSum" KeyFieldName="CREATE_BY" ClientInstanceName="dgCCSum_c"
                runat="server" AutoGenerateColumns="false" Width="100%" Font-Size="Small"
                 OnCustomCallback="dgCCSum_CustomCallback">
                <Styles Header-HorizontalAlign="Center" AlternatingRow-Enabled="True" Cell-Wrap="true" Cell-Font-Size="Smaller" Header-Wrap="true"
                    Header-Font-Size="Smaller" Header-Font-Bold="true">
                    <Header Wrap="True" Font-Size="Smaller" Font-Bold="True">
                    </Header>
                    <AlternatingRow Enabled="True">
                    </AlternatingRow>
                    <Cell Wrap="True" Font-Size="Smaller">
                    </Cell>
                </Styles>
                <SettingsPager PageSize="10">
                </SettingsPager>
                <Settings ShowFilterBar="Visible" ShowFilterRow="true" ShowFilterRowMenu="true"/>
                <SettingsBehavior AllowSort="true" />
                <ClientSideEvents EndCallback="function(s, e) { dgCCSum_c_CallbackComplete(e); }" />
                <Columns>
                    <dxwgv:GridViewDataTextColumn FieldName="CAR" Name="CAR" Caption="CAR" Width="15%"
                     GroupIndex="0" >
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="CAR" Name="CAR" Caption="CAR" >
                        <DataItemTemplate>
                        <%# GridColumnManager.GetCARLinkColumn(Eval("CREATE_BY").ToString(),Eval("CAR").ToString())%>
                        </DataItemTemplate>
                        <EditFormSettings Visible="False" />
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="COMPANY_NAME" Name="COMPANY_NAME" Caption="COMPANY" >
                        <DataItemTemplate>
                        <%# GridColumnManager.GetCompanyLinkColumn(Eval("CUSTOMER_ID").ToString(), Eval("COMPANY_NAME").ToString())%>
                        </DataItemTemplate>
                        <EditFormSettings Visible="False" />
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="CONTACT_PERSON" Name="CONTACT_PERSON" Caption="CONTACT PERSON" >
                        <EditFormSettings Visible="False" />
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="TOTAL" Name="TOTAL" Caption="TOTAL CALL" >
                        <EditFormSettings Visible="False" />
                    </dxwgv:GridViewDataTextColumn>
                </Columns>
                <Settings ShowGroupPanel="True" ShowFooter="True" ShowGroupFooter="VisibleAlways" />
                <TotalSummary>
                    <dxwgv:ASPxSummaryItem FieldName="TOTAL" SummaryType="Sum" DisplayFormat="n0" />
                </TotalSummary>
                <GroupSummary>
                    <dxwgv:ASPxSummaryItem FieldName="TOTAL" ShowInGroupFooterColumn="TOTAL" SummaryType="Sum" DisplayFormat="n0" />
                </GroupSummary>
            </dxwgv:ASPxGridView>
            </div>
        </dl>
    </fieldset>
</asp:Content>
